cd ..
echo "enter dayu200_tdd.sh"
echo "Current directory: $(pwd)"
ls -l
git config --global user.email you@example.com
git config --global user.name Your Name
cd test/testfwk/developer_test && git fetch https://gitee.com/openharmony/testfwk_developer_test.git pull/427/head:pr_427 && git merge pr_427 && cd -
bash build/prebuilts_download.sh
echo 'start' ;
echo "dayu200_tdd project_list:${project_list}";
if [[ -z $project_list ]];then
    build_target='build/ohos/packages:build_all_test_pkg';
else 
    build_target=TDD$project_list;
fi;  
export CCACHE_MAXSIZE=100G
export CCACHE_BASE="${PWD}"
export NO_DEVTOOL=1
export CCACHE_LOG_SUFFIX="dayu200-arm32"
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6:$LD_PRELOAD
export CCACHE_NOHASHDIR="true"
export CCACHE_SLOPPINESS="include_file_ctime"
if [[ -z $project_list ]];then 
    ./build.sh --product-name rk3568 --ccache \
    --build-target 'build/ohos/packages:build_all_test_pkg' \
    --gn-args enable_notice_collection=false \
    --disable-package-image \
    --gn-args enable_lto_O0=true \
    --gn-args skip_generate_module_list_file=true \
    --disable-part-of-post-build output_part_rom_status \
    --disable-part-of-post-build get_warning_list \
    --disable-part-of-post-build compute_overlap_rate  \
    --get-warning-list=false  \
    --compute-overlap-rate=false \
    --deps-guard=true \
    --gn-args use_thin_lto=false \
    --ninja-args=-j60 \
    --gn-args archive_ndk=false \
    --gn-args enable_process_notice=false \
    --precise-branch dayu200_tdd \
    --gn-args linux_kernel_version=linux-6.6 \
    --gn-args ohos_components_checktype=4 \
    --gn-args remove_unstripped_exe=true;
else 
    prebuilts/python/linux-x86/current/bin/python3 developtools/integration_verification/tools/precise_build/precise_build.py \
    -s ./build.sh \
    -f out/rk3568/precise_build_result.txt -- \
    --product-name rk3568 \
    --gn-args ohos_module_precise_build=true \
    ohos_precise_config="developtools/integration_verification/tools/precise_build/precise_build_tdd_config.json" \
    --gn-args enable_notice_collection=false \
    --disable-package-image \
    --gn-args enable_lto_O0=true \
    --gn-args skip_generate_module_list_file=true \
    --disable-part-of-post-build output_part_rom_status \
    --disable-part-of-post-build get_warning_list \
    --disable-part-of-post-build compute_overlap_rate \
    --get-warning-list=false  \
    --compute-overlap-rate=false \
    --deps-guard=true \
    --gn-args use_thin_lto=false \
    --ninja-args=-j60 \
    --gn-args archive_ndk=false \
    --gn-args enable_process_notice=false \
    --precise-branch dayu200_tdd \
    --gn-args linux_kernel_version=linux-6.6 \
    --gn-args remove_unstripped_exe=true;
fi;